package com.demo.common.result;


/**
 * @function: 工具类，同意返回结构
 * @Author: amayer
 * @Date: 2022/10/12
 */
public class ResponseInfo {

    public static ResultVo success() {
        return new ResultVo();
    }

    public static<T> ResultVo success(T data) {
        return new ResultVo(data);
    }

    public static ResultVo fail(String message) {
        return new ResultVo(ResultCodeEnums.FAIL.getCode(), message);
    }
}
